package com.org.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.org.bean.AdminInfoBean;
import com.org.bean.UsermessageBean;
import com.org.dao.UsermessageDao;
import com.org.service.IUserService;

@Service("userS")
public class UserService implements IUserService {
	@Resource
	private UsermessageDao userD; // 按类型匹配进行注入

	@Override
	public List<UsermessageBean> queryInfoByParams(UsermessageBean userB) {
		// 调用Dao层进行业务逻辑查询
		List<UsermessageBean> lstAdmins = userD.selectInfosBySelective(userB);
		// 返回结果
		return lstAdmins;
	}

	@Override
	public List<UsermessageBean> selectByPrimaryKeyList(Integer userid) {
		// 调用Dao层进行业务逻辑查询
		List<UsermessageBean> lstAdmins = userD.selectByPrimaryKeyList(userid);
		// 返回结果
		return lstAdmins;
	}

}
